//
// MAIN NAVIGATION
// ===============
//

.navgrid {
 width: 100%;
 min-width: 0;
 margin-left: 0;
 margin-right: 0;
 padding-left: 0;
 padding-right: 10px;
}

.nav {
 background: $color--blue;
 ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
  background-color: $color--blue;
 }
 li {
  line-height: 40px;
  height: 40px;
  border-bottom: none;
  margin-bottom: 0;
 }
 a {
  text-decoration: none;
  color: $color--white;
  display: block;
  &:hover {
   background-color: #0073b0;
  }
  &.active {
   background-color: #0073b0;
   color: $color--white;
   cursor: default;
  }
 }
}

.logo {
 text-align: center;
 background-color: $color--blue;
}

.navbar-brand {
 padding: 0;
 font-size: 18px;
 max-width: 250px;
}

@media screen and (min-width: 820px) {
 body {
  padding-top: 50px;
 }
 .navgrid {
  width: 100%;
  max-width: 1140px;
  min-width: 755px;
  margin: 0 auto;
  overflow: hidden;
 }
 .nav {
  height: 50px;
  width: 100%;
  z-index: 1000;
  position: fixed;
  top: 0;
 }
 .navbar-brand {
  padding: 0;
  font-size: 18px;
  float: left;
  max-width: 250px;
 }
 .nav {
  a {
   padding-left: 20px;
   padding-right: 20px;
  }
  z-index: 10;
  top: 0;
  background-color: $color--blue;
  li {
   border-bottom: none;
   height: 50px;
   line-height: 50px;
   float: left;
   display: inline-block;
   margin-right: 0;
  }
  a {
   text-decoration: none;
   color: $color--white;
   display: block;
  }
  ul {
   list-style: none;
   text-align: center;
   padding: 0;
   margin: 0;
   background-color: $color--blue;
  }
 }

 /* Fix for fixed navigation and links */
 :target:before {
  content: "";
  display: block;
  height: 50px; /* fixed header height*/
  margin: -50px 0 0; /* negative fixed header height */
 }
}

@media (min-width: 1550px) {
 .nav {
  li {
   font-size: 1.2em;
  }
 }
}

@media (min-width: 1900px) {
 .nav {
  li {
   font-size: 1.4em;
  }
 }
}
